package com.ruoyi.system.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.annotation.Excel.ColumnType;
import com.ruoyi.common.core.annotation.Excel.Type;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.common.core.xss.Xss;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 学生对象 sys_student
 * 
 * @author jlc
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_student")
public class SysStudent extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @Excel(name = "学生序号", cellType = ColumnType.NUMERIC, prompt = "学生编号")
    private Long id;

    /** 部门ID */
    @Excel(name = "部门编号", type = Type.IMPORT)
    private Long deptId;

    /** 学生姓名 */
    @Xss(message = "学生姓名不能包含脚本字符")
    @NotBlank(message = "学生姓名不能为空")
    @Size(min = 0, max = 30, message = "学生姓名长度不能超过30个字符")
    @Excel(name = "学生姓名")
    private String name;

    /** 身份证 */
    @Xss(message = "身份证号不能包含脚本字符")
    @NotBlank(message = "学生身份证不能为空")
    @Size(min = 0, max = 18, message = "身份证号长度不能超过18个字符")
    @Excel(name = "身份证")
    private String idCard;

    /** 用户性别 */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 用户邮箱 */
    @Email(message = "邮箱格式不正确")
    @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
    @Excel(name = "用户邮箱")
    private String email;

    /** 手机号码 */
    @Size(min = 0, max = 11, message = "手机号码长度不能超过11个字符")
    @Excel(name = "手机号码")
    private String phone;

    /** 民族 */
    @Excel(name = "民族")
    private String groupName;

    /** 高考考号 */
    @Excel(name = "高考考号")
    private String studentCode;

    /** 大学学号 */
    @Excel(name = "大学学号")
    private String studentId;

    /** qq号 */
    @Excel(name = "qq号")
    private String qqNumber;

    /** 家庭地址 */
    @Excel(name = "家庭地址")
    private String homeAddres;

    /** 家庭电话 */
    @Excel(name = "家庭电话")
    private String homePhone;

    /** 帐号状态（0正常 1停用） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;


}
